
var map =[]
for (let i = 0; i < rowNum; i++) {
    map[i] = [];
    for (let j = 0; j < colNum; j++) {
        if (i == 0 || j == 0 || i == rowNum - 1 || j == colNum - 1) {
            map[i][j] = 0;
            var wall = SquareFactory.create("Wall",j,i);
            wall.renderDom();
        } else {
            map[i][j] = 1;
            var floor = SquareFactory.create("Floor",j,i);
            floor.renderDom();
        } 
    }
}
Snake.map = map;

// {
//     0 : wall,
//     1 : floor,
//     27: food
// }